* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  /* Updated background to match index page */
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  color: #334155;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated floating elements background */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: -10s;
}

.floating-element:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: -15s;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.3; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 0.7; }
}

/* Header navigation */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1rem 2rem;
    z-index: 100;
    animation: slideDown 0.8s ease-out;
}

.nav-container {
    max-width: 1434px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #8b5cf6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Adjust for header navigation */
  padding-top: 80px;
  position: relative;
  z-index: 10;
}

/* Remove sidebar navigation - hide sidebar items */
.sidebar .sidebar-section .sidebar-item {
    display: none;
}

/* Update main layout for no sidebar */
.main-layout {
    display: flex;
    flex: 1;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .container {
        padding-top: 60px;
    }
    
    .main-content {
        padding: 1rem;
    }
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.back-btn {
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  color: #6b7280;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.back-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #374151;
}

/* 示例按钮样式 */
.input-btn {
  padding: 0.375rem 0.75rem;
  background: #f3f4f6;
  color: #6b7280;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}

.input-btn:hover {
  background: #e5e7eb;
}

.generation-settings {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.setting-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.setting-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.setting-input {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  width: 80px;
}

.setting-select {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
  min-width: 120px;
}

/* 修改模型选择器样式 */
.model-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.model-selector label {
  font-weight: 500;
  color: #4b5563;
  display: none;
}

.model-dropdown {
  position: relative;
  display: inline-block;
}

.model-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #374151;
  font-weight: 500;
  min-width: 150px;
}

.model-current:hover {
  border-color: #9ca3af;
  background-color: #f9fafb;
}

.model-current i {
  font-size: 1rem;
  color: #6b7280;
  margin-right: 0.25rem;
}

.model-current .caret {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.model-dropdown.active .caret {
  transform: rotate(180deg);
}

.model-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: auto;
  min-width: 100%;
  white-space: nowrap;
  margin-top: 0.25rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: none;
  overflow: hidden;
}

.model-dropdown.active .model-menu {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.model-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.model-item:hover {
  background-color: #f9fafb;
}

.model-item.active {
  background-color: #f3f4f6;
}

.model-item.active::after {
  content: "\f00c";
  font-family: "Font Awesome\ 6 Free";
  font-weight: 900;
  margin-left: 0.75rem;
  color: #8b5cf6;
}

.model-item i {
  font-size: 1rem;
  color: #6b7280;
}

/* 旧的select样式保留但隐藏，用于保持功能兼容性 */
.model-select {
  display: none;
}

/* Main Layout */
.main-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - 80px);
  position: relative;
}

/* Sidebar - 固定侧边栏 */
.sidebar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1rem;
  width: 150px;
  height: 100%;
  position: fixed;
  left: 0;
  z-index: 50;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.02);
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 0.875rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.5rem;
  flex-direction: column;
  border: 1px solid transparent;
}

.sidebar-item:hover {
  background: rgba(241, 245, 249, 0.8);
  transform: translateX(4px);
  border-color: rgba(148, 163, 184, 0.2);
}

.sidebar-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #4338ca;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.sidebar-item i {
  width: 1.25rem;
  text-align: center;
}

/* Main Content - 适应固定侧边栏 */
.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  min-height: calc(100vh - 80px);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.module-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.action-buttons {
  display: flex;
  flex-direction: column;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background: white;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Sample Type Selection */
.sample-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.sample-type-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.sample-type-card:hover {
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.sample-type-card.active {
  border-color: #f59e0b;
  background: #fffbeb;
}

.sample-type-icon {
  font-size: 2rem;
  color: #f59e0b;
  margin-bottom: 0.75rem;
}

.sample-type-title {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.sample-type-desc {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Configuration Panel */
.config-panel {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.config-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0.75rem 0.75rem 0 0;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.config-header-buttons {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}

.config-content {
  padding: 1rem;
}

.config-layout {
  display: flex;
  gap: 1.5rem;
}

.action-column {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.params-column {
  flex: 1;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.config-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.config-label {
  font-weight: 500;
  color: #374151;
  font-size: 0.75rem;
}

.config-input {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  outline: none;
  transition: border-color 0.2s;
}

.config-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Results Section - 优化布局匹配 */
.results-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.results-main {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  height: 700px;
  display: flex;
  flex-direction: column;
}

.results-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  height: 80px;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
}

.results-title {
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  padding: 0.375rem 0.75rem;
  background: #f3f4f6;
  color: #6b7280;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #e5e7eb;
}

/* 复制按钮样式 - 从attention页面复制 */
.copy-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.copy-btn:hover {
  background-color: #f3f4f6;
  color: #4b5563;
}

.copy-btn.success {
  color: #10b981;
}

/* 全部复制按钮的成功状态 */
.action-btn.success {
  color: #10b981;
}

.results-content {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}

.results-content::-webkit-scrollbar {
  width: 6px;
}

.results-content::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 3px;
}

.results-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.results-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 统一样本卡片系统 - 专业布局设计 */
.sample-item,
.advantage-sample-item {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.sample-item:hover,
.advantage-sample-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.sample-item:last-child,
.advantage-sample-item:last-child {
  margin-bottom: 0;
}

/* 优势样本特殊样式 */
.advantage-sample-item {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  position: relative;
  overflow: hidden;
}

.advantage-sample-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.advantage-sample-item:hover {
  border-color: #d97706;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15), 0 4px 8px rgba(245, 158, 11, 0.1);
}

/* 统一Header样式 */
.sample-header,
.advantage-sample-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.advantage-sample-header {
  border-bottom-color: rgba(245, 158, 11, 0.1);
}

/* 统一标题样式 */
.sample-id,
.advantage-sample-title,
.stats-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.advantage-sample-title,
.stats-header {
  color: #92400e;
}

.advantage-sample-title i,
.stats-header i {
  color: #f59e0b;
  font-size: 16px;
}

/* 统一操作按钮样式 */
.sample-actions {
  display: flex;
  gap: 8px;
}

.sample-btn {
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sample-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #475569;
  transform: translateY(-1px);
}

.sample-btn i {
  font-size: 11px;
}

/* 统一内容样式 */
.sample-content,
.advantage-sample-content {
  font-size: 15px;
  line-height: 1.7;
  color: #1f2937;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  max-width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  letter-spacing: 0.01em;
}

.advantage-sample-content {
  background: rgba(255, 255, 255, 0.6);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.1);
}

/* 样本类型标识 */
.sample-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 12px 12px 0 0;
}

/* 样本编号装饰 */
.sample-id::before {
  content: "#";
  color: #9ca3af;
  font-weight: 400;
  margin-right: 2px;
}

/* 内容区域微调 */
.sample-content p,
.advantage-sample-content p {
  margin-bottom: 12px;
}

.sample-content p:last-child,
.advantage-sample-content p:last-child {
  margin-bottom: 0;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .sample-item,
  .advantage-sample-item {
    padding: 16px;
    margin-bottom: 12px;
  }

  .sample-header,
  .advantage-sample-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
  }

  .sample-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .sample-content,
  .advantage-sample-content {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Statistics Sidebar - 与样本输出完全一致 */
.stats-sidebar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  height: 700px;
  display: flex;
  flex-direction: column;
}

.stats-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.8) 0%, rgba(254, 243, 199, 0.8) 100%);
  border-radius: 16px 16px 0 0;
  font-weight: 600;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  height: 80px;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
}

.stats-content {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}

.stats-content::-webkit-scrollbar {
  width: 6px;
}

.stats-content::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 3px;
}

.stats-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.stats-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.stat-value {
  font-weight: 600;
  color: #f59e0b;
}

/* IO Container */
.io-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.input-section {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.section-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-content {
  padding: 1.5rem;
}

.input-textarea {
  width: 100%;
  min-height: 200px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  resize: vertical;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
}

.input-textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Model Selector */
.model-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.model-select {
  padding: 0.2rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
  min-width: 150px;
}

/* Loading State */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #6b7280;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #f59e0b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .results-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .io-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .config-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }

  .module-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .config-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .config-header-buttons {
    margin-left: 0;
    width: 100%;
  }

  .config-header-buttons .btn {
    flex: 1;
  }
}

@media (max-width: 576px) {
  .config-grid {
    grid-template-columns: 1fr;
  }

  .main-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .sidebar-item {
    margin: 0;
    flex: 1;
    min-width: 120px;
    text-align: center;
    justify-content: center;
  }
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(-10px);
}

.notification.success {
  background-color: #10b981;
  color: white;
  border: 1px solid #059669;
}

.notification.error {
  background-color: #ef4444;
  color: white;
  border: 1px solid #dc2626;
}

.notification.info {
  background-color: #3b82f6;
  color: white;
  border: 1px solid #1d4ed8;
}
